<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>海外仓派仓规则</title>
<body class="withvernav">
<div class="bodywrapper">
	{{include file='/public/leftmenu.tpl'}}
	<div class="centercontent">
		<div class="pageheader notab">
			<h1 class="pagetitle">海外仓派仓规则</h1>
			<span class="pagedesc"></span>
			<div class="menulist">
				<ul class="profile_summary">
					{{if $managers || in_array('242',$showpower)}}  <li {{if $status==""}} class="current"{{/if}}> <a href="/oversea/addOverseaRules"><span>添加规则</span></a></li>{{/if}}
				</ul>
			</div>

		</div>
		<!--pageheader-->
		<div id="contentwrapper" class="contentwrapper">
			<div id="basicform" class="subcontent">
				<!--搜索栏-->
				<div>


					<div style="clear: both"></div>
					<div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
				</div>


				<!--搜索栏结束-->
				<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
					<thead>
					<tr class="lbbt">
						<td bgcolor="#FEFFF1" width="5%" ><a onClick="allSelect('ppid[]')">全选</a></td>
						<td width="5%"  bgcolor="#FEFFF1">优先级</td>
						<td  width="25%" bgcolor="#FEFFF1">规则名称</td>
						<td  bgcolor="#FEFFF1">状态</td>
						<td  bgcolor="#FEFFF1">操作时间</td>
						<td  bgcolor="#FEFFF1">操作者</td>
						<td  bgcolor="#FEFFF1">操作</td>
					</tr>
					</thead>
					<tbody >

					{{foreach from=$orderlist item=li key=key}}
					<tr>
						<td ><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.orderId}}" /></td>
						<td valign="middle"  style="position:relative;">
							{{$li.priority}}
						</td>
						<td valign="middle" >{{$li.name}}</td>
						<td valign="middle" >{{if $li.status==0}}启用{{else}}停用{{/if}}</td>

						<td  style="position:relative;">{{$li.opertime}}</td>
						<td valign="middle" >{{$li.oper}}</td>
						<td valign="middle" >
							<a href="/oversea/addOverseaRules?id={{$li.id}}">编辑</a>
							｜ <a onClick="return confirm('确认删除？')" href="/oversea/ajaxbutton?op=deloversearule&id={{$li.id}}">删除</a>
							｜{{if $li.status==0}}
								<a href="/oversea/ajaxbutton?op=stoversearule&id={{$li.id}}&type=1">停用</a>
							{{else}}
								<a href="/oversea/ajaxbutton?op=stoversearule&id={{$li.id}}&type=0"><font color=red>启用</font></a>
							{{/if}}
						</td>
					</tr>

					{{/foreach}}
					</tbody>

				</table>
				<div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
			</div>
		</div>



</body>
</html>